<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<p>这是今天的第一个demo</p>
<p id="location_content"></p>
</body>
</html>
<script>
    // var content = location.href;
    // document.getElementById("location_content").innerHTML = content;
    var x = document.cookie;
    document.getElementById("location_content").innerHTML = x;
</script>